//
//  NISendMail.h
//  邮箱发送
//  Created by 　罗若文 on 16/7/7.
//  Copyright © 2016年 罗若文. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NISendMail : NSObject

///初始化,发送者邮箱,密码,邮箱服务器  qq的:smtp.qq.com
- (instancetype)initWithEmail:(NSString *)login password:(NSString *)password relayHost:(NSString *)relayHost;

///发送邮件:标题,接收方,内容,附件
-(void)sendMail:(NSString *)title toEmail:(NSString *)toEmail content:(NSString *)content enclosureName:(NSString *)enclosureName enclosure:(NSData * )enclosure;

///发送邮件:标题,接收方,隐藏抄送,抄送,内容,附件名,附件
-(void)sendMail:(NSString *)title toEmail:(NSString *)toEmail bccEmail:(NSString *)bccEmail ccEmail:(NSString *)ccEmail content:(NSString *)content enclosureName:(NSString *)enclosureName enclosure:(NSData * )enclosure;
@end
